package com.financing.wap.dto;

import java.util.Date;

import javax.validation.constraints.Future;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;

public class TaskDTO extends BaseDTO {
	
	private static final long serialVersionUID = 7962760574342301967L;

	/**
	 * FAID
	 */
	private String faId;
	
	/**
	 * 任务执行时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH")
	private Date executeTime;
	
	/**
	 * 任务类型
	 */
	private String type;
	
	/**
	 * 任务类型
	 */
	private String content;
	
	/**
	 * 是否提前一天提醒
	 */
	private String remind;
	
	/**
	 * 是否加为业务机会
	 */
	private String businessOpportunities;
	
	/**
	 * 小时
	 */
	private String hour;
	
	
	public String getHour() {
		return hour;
	}

	public void setHour(String hour) {
		this.hour = hour;
	}

	public String getFaId() {
		return faId;
	}

	public void setFaId(String faId) {
		this.faId = faId;
	}

	@Future(message="日期不正确")
	public Date getExecuteTime() {
		return executeTime;
	}

	public void setExecuteTime(Date executeTime) {
		this.executeTime = executeTime;
	}

	
	@NotEmpty
	@Length(min=1,max=10)
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}



	public void setContent(String content) {
		this.content = content;
	}

//	@NotEmpty
//	@Length(min=1,max=10)
	public String getRemind() {
		return remind;
	}

	public void setRemind(String remind) {
		this.remind = remind;
	}

//	@NotEmpty
//	@Length(min=1,max=10)
	public String getBusinessOpportunities() {
		return businessOpportunities;
	}

	public void setBusinessOpportunities(String businessOpportunities) {
		this.businessOpportunities = businessOpportunities;
	}

	public String getContent() {
		return content;
	}
}
